import request from '@/utils/request'

// 查询映射数据列表
export function listVisualMap(query) {
  return request({
    url: '/agriculture/VisualMap/list',
    method: 'get',
    params: query
  })
}

// 查询映射数据详细
export function getVisualMap(vmId) {
  return request({
    url: '/agriculture/VisualMap/' + vmId,
    method: 'get'
  })
}

// 新增映射数据
export function addVisualMap(data) {
  return request({
    url: '/agriculture/VisualMap',
    method: 'post',
    data: data
  })
}

// 修改映射数据
export function updateVisualMap(data) {
  return request({
    url: '/agriculture/VisualMap',
    method: 'put',
    data: data
  })
}

// 删除映射数据
export function delVisualMap(vmId) {
  return request({
    url: '/agriculture/VisualMap/' + vmId,
    method: 'delete'
  })
}
